home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 2008 September
/
PCWorld_2008-09_cd.bin
/
v cisle
/
sadanastroju
/
wot-20080519-fx.xpi
/
chrome
/
wot.jar
/
content
/
eula.js
< prev
next >
Wrap
Text File
|
2007-11-11
|
734b
|
39 lines
/*
eula.js
Copyright © 2006, 2007 Against Intuition, Inc. <info@mywot.com>
*/
var wot_eula =
{
accept: function()
{
try {
return (wot_prefs.setBool("eula_accepted", true) &&
wot_prefs.setBool("enabled", true));
} catch (e) {
dump("wot_eula.accept: failed with " + e + "\n");
}
return false;
},
decline: function()
{
try {
wot_prefs.setBool("eula_accepted", false);
wot_prefs.setBool("enabled", false);
var em = Components.classes["@mozilla.org/extensions/manager;1"].
getService(Components.interfaces.nsIExtensionManager);
if (em) {
em.uninstallItem(WOT_GUID);
}
return true;
} catch (e) {
dump("wot_eula.decline: failed with " + e + "\n");
}
return false;
}
}